<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateConfSiteMainGamePlatsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('conf_site_main_game_plats', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->integer('main_game_plats_id')->comment('游戏平台');
			$table->integer('site_id')->comment('网站id');
			$table->boolean('status')->default(1)->comment('状态1=开启，0=关闭');
			$table->decimal('score', 11)->unsigned()->default(0.00)->comment('分数');
			$table->decimal('rate', 15, 4)->nullable()->default(0.0000)->comment('点位');
			$table->boolean('goldpool')->nullable()->default(0)->comment('奖池是否可用，1=可用，0=不可用');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('conf_site_main_game_plats');
	}

}
